package OOday02;

/**
 * 学生类
 */
public class Student extends Person {
    String className;
    int stuId;
    Student(){

    }
    Student(String className,int stuId,String name,String address,int age){

        super(name,age,address);
        this.className=className;
        this.stuId=stuId;
    }

    void study(){
        System.out.println(name+"正在学习");
    }
    void sayHi() {
        System.out.println("大家好，我是" + name + "今年" + age + "岁了，家住" + address+"的一名学生"+className);
    }

    public static void main(String[] args) {
        Student aa=new Student("第一班",1231,"lilei","tamhsasm",20);
        aa.study();
        aa.sayHi();
    }
}
